//
//  rightCell.m
//  PhotoCircle
//
//  Created by wujungao on 12/15/15.
//  Copyright © 2015 wujungao. All rights reserved.
//

#import "rightCell.h"
#import "UIImageView+WebCache.h"

@interface rightCell()

@property (weak, nonatomic) IBOutlet UIView *blackLineView;
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UIView *labelView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *authorLabel;
@property (weak, nonatomic) IBOutlet UILabel *voteNumLabel;

@end

@implementation rightCell

-(void)awakeFromNib{
    
}

-(void)configCellWithImageURL:(NSString *)imageURL andTitle:(NSString *)title andAuthor:(NSString *)author andVote:(NSInteger)vote{
    
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:imageURL] placeholderImage:nil];
    self.titleLabel.text=title;
    NSString *midAuthor=[NSString stringWithFormat:@"创作者：%@",author];
    self.authorLabel.text=midAuthor;
    NSString *midVoteString=[NSString stringWithFormat:@"票数：%ld",(long)vote];
    self.voteNumLabel.text=midVoteString;
    self.blackLineView.hidden=NO;
}

-(void)removeTopBlackLineView{
    
    self.blackLineView.hidden=YES;
}

@end
